package com.flower;

import com.Rule.RandomRuleRuleConfig;
import com.Rule.RoundRobinRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
 *@ClassName FlowerApplication
 *@Description TODO
 *@Author 吃麻椒的花酱
 *@Date 2021/8/20 12:57
 *@Version 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@RibbonClients({
        @RibbonClient(name = "client-flowers",configuration = RandomRuleRuleConfig.class),
        @RibbonClient(name = "client-floweres",configuration = RoundRobinRuleConfig.class)
})
public class FlowerApplication {
    public static void main(String[] args) {
        SpringApplication.run(FlowerApplication.class, args);
    }
}
